package com.neardrug.services.impl;

import com.neardrug.entity.patent;
import com.neardrug.mapper.patentMapper;
import com.neardrug.services.patentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author rui
 * @ClassName: patentServiceImpl
 * @create 2023-06-28 16:11
 */
@Service
public class patentServiceImpl implements patentService {
    @Resource
    private com.neardrug.mapper.patentMapper patentMapper;

    @Override
    public List<patent> findAll() {
        return patentMapper.findAll();
    }

    @Override
    public List<patent> findByType(String[] types,Integer pageStart,Integer pageSize) {
        return patentMapper.findByType(types,pageStart,pageSize);
    }

    @Override
    public Integer selectTotal(String[] types) {
        return patentMapper.selectTotal(types);
    }
}
